/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PnlListClemenstoBackend.java
 *
 * Created on 16 ม.ค. 2553, 16:09:53
 */

package store.backend;

/**
 *
 * @author Administrator
 */
public class PnlListClemens extends javax.swing.JPanel {

    /** Creates new form PnlListClemenstoBackend */
    public PnlListClemens() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlListClemens = new javax.swing.JPanel();
        lblListClemens = new javax.swing.JLabel();
        btnListClemensSearch = new javax.swing.JButton();
        btnListClemensAdd = new javax.swing.JButton();
        btnListClemensEdit = new javax.swing.JButton();
        btnListClemensCancel = new javax.swing.JButton();
        jPanel2 = new javax.swing.JPanel();
        lblListClemensOder = new javax.swing.JLabel();
        lblListClemensIDCustomer = new javax.swing.JLabel();
        txtListClemensIDCustomer = new javax.swing.JTextField();
        lblListClemensName = new javax.swing.JLabel();
        txtListClemensName = new javax.swing.JTextField();
        txtListClemensName1 = new javax.swing.JTextField();
        lblListClemensName1 = new javax.swing.JLabel();
        txtListClemensIdmanternance = new javax.swing.JTextField();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();

        setMaximumSize(new java.awt.Dimension(700, 500));
        setPreferredSize(new java.awt.Dimension(700, 500));

        pnlListClemens.setBackground(new java.awt.Color(255, 204, 102));
        pnlListClemens.setMaximumSize(new java.awt.Dimension(700, 80));
        pnlListClemens.setPreferredSize(new java.awt.Dimension(700, 80));

        lblListClemens.setFont(new java.awt.Font("Tahoma", 1, 16));
        lblListClemens.setText("ส่งสินค้าเครม");

        btnListClemensSearch.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListClemensSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/search_30x30.gif"))); // NOI18N
        btnListClemensSearch.setMaximumSize(new java.awt.Dimension(71, 25));
        btnListClemensSearch.setMinimumSize(new java.awt.Dimension(71, 25));
        btnListClemensSearch.setPreferredSize(new java.awt.Dimension(40, 40));
        btnListClemensSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnListClemensSearchActionPerformed(evt);
            }
        });

        btnListClemensAdd.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListClemensAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/add_30x30.gif"))); // NOI18N
        btnListClemensAdd.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListClemensEdit.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListClemensEdit.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/edit1_30x30.gif"))); // NOI18N
        btnListClemensEdit.setMaximumSize(new java.awt.Dimension(71, 25));
        btnListClemensEdit.setMinimumSize(new java.awt.Dimension(71, 25));
        btnListClemensEdit.setPreferredSize(new java.awt.Dimension(40, 40));

        btnListClemensCancel.setFont(new java.awt.Font("Tahoma", 0, 14));
        btnListClemensCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/cancel_30x30.gif"))); // NOI18N
        btnListClemensCancel.setPreferredSize(new java.awt.Dimension(40, 40));

        javax.swing.GroupLayout pnlListClemensLayout = new javax.swing.GroupLayout(pnlListClemens);
        pnlListClemens.setLayout(pnlListClemensLayout);
        pnlListClemensLayout.setHorizontalGroup(
            pnlListClemensLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListClemensLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(pnlListClemensLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblListClemens)
                    .addGroup(pnlListClemensLayout.createSequentialGroup()
                        .addComponent(btnListClemensSearch, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnListClemensAdd, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnListClemensEdit, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(btnListClemensCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(504, Short.MAX_VALUE))
        );
        pnlListClemensLayout.setVerticalGroup(
            pnlListClemensLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnlListClemensLayout.createSequentialGroup()
                .addGap(11, 11, 11)
                .addComponent(lblListClemens)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(pnlListClemensLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(btnListClemensCancel, javax.swing.GroupLayout.DEFAULT_SIZE, 39, Short.MAX_VALUE)
                    .addComponent(btnListClemensSearch, 0, 0, Short.MAX_VALUE)
                    .addComponent(btnListClemensAdd, javax.swing.GroupLayout.DEFAULT_SIZE, 39, Short.MAX_VALUE)
                    .addComponent(btnListClemensEdit, javax.swing.GroupLayout.DEFAULT_SIZE, 39, Short.MAX_VALUE))
                .addContainerGap())
        );

        jPanel2.setPreferredSize(new java.awt.Dimension(700, 300));

        lblListClemensOder.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListClemensOder.setText("รหัสใบส่งเครม :");

        lblListClemensIDCustomer.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListClemensIDCustomer.setText("รหัสสินค้า :");

        txtListClemensIDCustomer.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtListClemensIDCustomer.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtListClemensIDCustomerActionPerformed(evt);
            }
        });

        lblListClemensName.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListClemensName.setText("รหัสสมาชิก :");

        txtListClemensName.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtListClemensName.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtListClemensNameActionPerformed(evt);
            }
        });

        txtListClemensName1.setFont(new java.awt.Font("Tahoma", 0, 12));
        txtListClemensName1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtListClemensName1ActionPerformed(evt);
            }
        });

        lblListClemensName1.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        lblListClemensName1.setText("รหัสส่งเครม :");

        txtListClemensIdmanternance.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
        txtListClemensIdmanternance.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                txtListClemensIdmanternanceActionPerformed(evt);
            }
        });

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null},
                {null, null, null, null, null, null, null, null}
            },
            new String [] {
                "รหัสส่งเครม", "ชื่อสินค้า", "ชื่อลูกค้า", "วันหมดประกันสินค้า", "วันที่รับเครม", "เบอร์โทรติดต่อลูกค้า", "อาการที่เสีย", "สถานะการเครม"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.String.class, java.lang.Integer.class, java.lang.String.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(jTable1);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(lblListClemensOder)
                    .addComponent(lblListClemensName1)
                    .addComponent(lblListClemensName)
                    .addComponent(lblListClemensIDCustomer))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(txtListClemensIdmanternance, javax.swing.GroupLayout.DEFAULT_SIZE, 152, Short.MAX_VALUE)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(txtListClemensIDCustomer, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(txtListClemensName, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(txtListClemensName1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(449, 449, 449))
            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 702, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtListClemensIdmanternance, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblListClemensOder, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblListClemensName1, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtListClemensName1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblListClemensName, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(txtListClemensName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(txtListClemensIDCustomer, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblListClemensIDCustomer, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(pnlListClemens, javax.swing.GroupLayout.DEFAULT_SIZE, 702, Short.MAX_VALUE)
            .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 702, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(pnlListClemens, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, 333, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(86, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void txtListClemensIDCustomerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtListClemensIDCustomerActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtListClemensIDCustomerActionPerformed

    private void txtListClemensNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtListClemensNameActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtListClemensNameActionPerformed

    private void txtListClemensName1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtListClemensName1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtListClemensName1ActionPerformed

    private void txtListClemensIdmanternanceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtListClemensIdmanternanceActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_txtListClemensIdmanternanceActionPerformed

    private void btnListClemensSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnListClemensSearchActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_btnListClemensSearchActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnListClemensAdd;
    private javax.swing.JButton btnListClemensCancel;
    private javax.swing.JButton btnListClemensEdit;
    private javax.swing.JButton btnListClemensSearch;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable jTable1;
    private javax.swing.JLabel lblListClemens;
    private javax.swing.JLabel lblListClemensIDCustomer;
    private javax.swing.JLabel lblListClemensName;
    private javax.swing.JLabel lblListClemensName1;
    private javax.swing.JLabel lblListClemensOder;
    private javax.swing.JPanel pnlListClemens;
    private javax.swing.JTextField txtListClemensIDCustomer;
    private javax.swing.JTextField txtListClemensIdmanternance;
    private javax.swing.JTextField txtListClemensName;
    private javax.swing.JTextField txtListClemensName1;
    // End of variables declaration//GEN-END:variables

}
